/* enum */
import { ProductFieldNameMappingEnum } from '@model/enum/FieldMappingEnum'
/* util */
import { filterProperty } from '@src/util/lang/object'

const productSearchParamsInvalidFieldNames: string[] = [
  ProductFieldNameMappingEnum.QualityInfoStartTime,
  ProductFieldNameMappingEnum.QualityInfoEndTime,
  ProductFieldNameMappingEnum.QualityStartTime,
  ProductFieldNameMappingEnum.QualityEndTime,
  ProductFieldNameMappingEnum.QualityInfoStatus
]

export function filterProductSearchParamsInvalidProperty(params: Record<string, any>) {
  return (
    filterProperty(params, productSearchParamsInvalidFieldNames)
  )
}
